projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e260c1c
)
tools: xenconsole: cleanup when clock_gettime fails.
author
Ian Campbell
<ian.campbell@citrix.com>
Wed, 3 Feb 2016 10:43:47 +0000
(10:43 +0000)
committer
Ian Campbell
<ian.campbell@citrix.com>
Wed, 3 Feb 2016 11:22:45 +0000
(11:22 +0000)
All other error paths in the infinite loop in handle_io use break, so
as to free resources.
CID:
1351226
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/console/daemon/io.c
patch
|
blob
|
history
diff --git
a/tools/console/daemon/io.c
b/tools/console/daemon/io.c
index e2e7a6b242399a7722eb685dcd37d89d0f90f630..34666c43ab5697798f7d6cae88137b5bc71ce36e 100644
(file)
--- a/
tools/console/daemon/io.c
+++ b/
tools/console/daemon/io.c
@@
-1053,7
+1053,7
@@
void handle_io(void)
POLLIN|POLLPRI);
if (clock_gettime(CLOCK_MONOTONIC, &ts) < 0)
-
return
;
+
break
;
now = ((long long)ts.tv_sec * 1000) + (ts.tv_nsec / 1000000);
/* Re-calculate any event counter allowances & unblock